package com.geostar.gmp.test;

import java.util.ArrayList;
import java.util.List;

import com.geostar.gmp.utils.JsonUtils;

public class JsonBean {

	private String id;
	private String username;
	private String password;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public static void main(String[] args) {
		
		List<JsonBean> beanList = new ArrayList<JsonBean>();
		JsonBean bean = new JsonBean();
		bean.setId("12345");
		bean.setUsername("yesong");
		bean.setPassword("yesong8553305");
		
		JsonBean bean1 = new JsonBean();
		bean1.setId("45678");
		bean1.setUsername("yesong22");
		bean1.setPassword("yesong85533052222");
		
		beanList.add(bean);
		beanList.add(bean1);
		
		String json = JsonUtils.bean2Json(beanList);
		System.out.println("json_list： " + json); 
	}
	
}
